package wwy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import wwy.Dto.LoginDto;
import wwy.Dto.RegisterDto;
import wwy.Dto.UserDto;

@FeignClient(name = "UserService")
public interface getUserService {
    @PostMapping("/user/getUserInfo")
    UserDto getUserInfo(@RequestBody LoginDto loginDto);

    @PostMapping("/user/addNewUser")
    String addNewUser(@RequestBody RegisterDto userInfo);
}
